<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <script type="text/javascript" src="scripts/jquery-1.5.2.min.js"></script>
        <script type="text/javascript">
            $(function(){
                $("#div1").click(function(){
                    alert("click");
                })
                $("#div1")[0].onclick=function(){
                    alert("onclick");
                }
                //$("#div1").trigger("click");
                $("#input1").focus(function(){
                    //alert("focus");
                })
                //$("#input1").trigger("focus");
                $("#input1").triggerHandler("focus");
            })
        </script>
    </head>
    <body>
        <div id="div1" style="width: 400px;height: 200px;border: 1px solid blue">This is a div</div>
        <input type="text" id="input1"/>
    </body>
</html>
